<template>
  <RouterView v-slot="{ Component, route }">
    <keep-alive :include="tabs">
    <component
        :is="Component"
        :key="route.meta.usePathKey ? route.path : undefined"
      />
      </keep-alive>
  </RouterView>
  
</template>
<script lang="ts" setup>
import { computed } from "vue";
import store from "@/store";
const tabs = computed(() => store.getters.tabs.map(tab => "page" + tab.key))
</script>